<template>
    <div class="box bg-fff flex aic jc-sb pl-10">
        <p>
            {{ textObj.module }}/ 
            <strong>{{ textObj.name }}</strong> - 
            {{ textObj.desc }}
        </p>
        <el-link type="primary" class="mr-20" @click="emit('add')">{{rightText}}</el-link>
    </div>
</template>

<script setup>
import { ref } from 'vue';


// 子传父
const emit = defineEmits(['add'])

defineProps({ 
    rightText: String,
    textObj: Object
}) 
</script>

<style scoped>
.box {
    height: 60px;
}
</style>